var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_ChangeController(3004304, "oid=366040", 3026, 36, 3, 2976, 3076, 1, false, 0, false);
            cm.npc_ChangeController(3004302, "oid=366041", 2559, 78, 17, 2509, 2609, 0, false, 0, false);
            cm.npc_ChangeController(3004303, "oid=366042", 2478, 78, 17, 2428, 2528, 0, false, 0, false);
            cm.npc_ChangeController(3004300, "oid=366043", 2057, 78, 24, 2007, 2107, 1, false, 0, false);
            if (cm.isQuestFinished(37304)) {
                cm.dispose();
                return
            }
            cm.curNodeEventEnd(true);
            cm.eventSKill(0);
            cm.setInGameDirectionMode(true, false, true);
            cm.inGameDirectionEvent_SetAdditionalEffectVisibleForInGameDirection2();
            cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 0);
            cm.setStandAloneMode(true);
            cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 2500, 0);
            cm.inGameDirectionEvent_AskAnswerTime(3500);
            cm.curNodeEventEnd(true)
        } else {
            if (status === a++) {
                cm.sendNormalTalk_Bottom("这里是……拉克兰？", 57, 0, false, true)
            } else {
                if (status === a++) {
                    cm.eventSKill(0);
                    cm.setInGameDirectionMode(false, true, false);
                    cm.setStandAloneMode(false);
                    cm.forceCompleteQuest(37304);
                    cm.dispose()
                }
            }
        }
    }
};